summaryrefslogtreecommitdiffstats
path: root/SetFlags.cmake
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-07-22 00:40:13 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-08-20 17:15:55 +0200
commit5751ba0c1c774d69512cad2bd2c17e40b03af31a (patch)
tree3efe3615509589c8c6360aae490b55c54e4b8d55 /SetFlags.cmake
parentMerge pull request #2391 from SamJBarney/CropGrowthFix (diff)
downloadcuberite-5751ba0c1c774d69512cad2bd2c17e40b03af31a.tar
cuberite-5751ba0c1c774d69512cad2bd2c17e40b03af31a.tar.gz
cuberite-5751ba0c1c774d69512cad2bd2c17e40b03af31a.tar.bz2
cuberite-5751ba0c1c774d69512cad2bd2c17e40b03af31a.tar.lz
cuberite-5751ba0c1c774d69512cad2bd2c17e40b03af31a.tar.xz
cuberite-5751ba0c1c774d69512cad2bd2c17e40b03af31a.tar.zst
cuberite-5751ba0c1c774d69512cad2bd2c17e40b03af31a.zip
Diffstat (limited to 'SetFlags.cmake')
-rw-r--r--SetFlags.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index ca5f1d289..9931e4b64 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -266,11 +266,18 @@ macro(set_exe_flags)
add_flags_cxx("-Wno-documentation")
endif()
if ("${CLANG_VERSION}" VERSION_GREATER 3.5)
+ include(CheckCXXCompilerFlag)
check_cxx_compiler_flag(-Wno-reserved-id-macro HAS_NO_RESERVED_ID_MACRO)
+ check_cxx_compiler_flag(-Wno-documentation-unknown-command HAS_NO_DOCUMENTATION_UNKNOWN)
if (HAS_NO_RESERVED_ID_MACRO)
# Use this flag to ignore error for a reserved macro problem in sqlite 3
add_flags_cxx("-Wno-reserved-id-macro")
endif()
+ if (HAS_NO_DOCUMENTATION_UNKNOWN)
+ # Ignore another problem in sqlite
+ add_flags_cxx("-Wno-documentation-unknown-command")
+ endif()
+ add_flags_cxx("-Wno-format-pedantic")
endif()
endif()
endif()